<?php

namespace app\controller\bossManager;

use app\validate\PageValidate;
use app\validate\UserLogValidate;
use app\service\UserLogService;

class UserLogController extends WebBossController{
    public function initValidate(){        
        $this->validate = new UserLogValidate();
    }

    public function list_action(){  
        $input = $this->check();        
        $page = $this->check('pageInfo',null,(new PageValidate()));        
        $data = UserLogService::getListInfo($input,$page);
        $total = UserLogService::getListCountInfo($input);
        return self::ok(self::formatPageData($page,$total,$data));    
    }

    // public function simple_all_action(){
    //     //TODO change code here
    //     $data = UserLogService::getNativeAll([],['id','name']);
    //     return self::ok($data); 
    // }
}